<?php
Doo::loadCore('db/DooModel');

class FrbcmsTypeBase extends DooModel
{

    /**
     * @var int Max length is 11.
     */
    public $tpe_id;

    /**
     * @var varchar Max length is 150.
     */
    public $tpe_name;

    public $_table = 'frbcms_type';
    public $_primarykey = 'tpe_id';
    public $_fields = array('tpe_id','tpe_name');

    public function getVRules() {
        return array(
                'tpe_id' => array(
                        array( 'integer' ),
                        array( 'maxlength', 11 ),
                        array( 'optional' ),
                ),

                'tpe_name' => array(
                        array( 'maxlength', 150 ),
                        array( 'notnull' ),
                )
            );
    }

}